import { http } from '@/server'
import type { HttpResponsePending, HttpResponsePromise } from '@/server/interface'
import type * as I from './interface'

export const getNoticeList = (
    params: I.NoticeListType.ParamsType,
): HttpResponsePending<I.NoticeListType.Res> => http.get('/engineer/notice', { params })

export const queryNoticeDetail = (id: string): HttpResponsePromise<I.NoticeListType.Res> =>
    http.get(`/engineer/notice/${id}`)
